package gov.ccswj.modules.app.controller;


import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import gov.ccswj.common.utils.R;
import gov.ccswj.modules.app.service.DomesticInvestmentService;

/**
 *招商接口
 */
@RestController
@RequestMapping("/api")
public class ApiZSController {
    
    
    @Autowired
    private DomesticInvestmentService domesticInvestmentService;

    @GetMapping("nztzlyzb1")
    public R nztzlyzb1(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getNztzlyzb1());
    }
    
    @GetMapping("nztzlyzb2")
    public R nztzlyzb2(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getNztzlyzb2());
    }
    
    @GetMapping("nztzlyzb3")
    public R nztzlyzb3(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getNztzlyzb3());
    }
    
    @GetMapping("nztzgm")
    public R nztzgm(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getNztzgm());
    }
    
    @GetMapping("nzzjly")
    public R nzzjly(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getNzzjly());
    }
    
    @GetMapping("lynzyjqk1")
    public R lynzyjqk1(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getLynzyjqk1());
    }
    
    @GetMapping("lynzyjqk2")
    public R lynzyjqk2(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getLynzyjqk2());
    }
    
    
    @GetMapping("wznzyjqk1")
    public R wznzyjqk1(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getLywzyjqk1());
    }
    
    @GetMapping("wznzyjqk2")
    public R wznzyjqk2(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getLywzyjqk2());
    }
    
    @GetMapping("right2plate")
    public R xslszqybx(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getRight2Plate());
    }
    
    @GetMapping("sjlywzje")
    public R sjlywzje(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getSjlywzje());
    }
    
    @GetMapping("htwztop5")
    public R htwztop5(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getHtwztop5());
    }
    
    @GetMapping("xpwzqyzb")
    public R xpwzqyzb(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        return R.ok().put("data", domesticInvestmentService.getXpwzqyzb());
    }

}
